Repository navigation
Conversation
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
There was a problem hiding this comment.
🟡 Changes recommended
The race path can orphan large-message blobs, and the regression test bypasses the control-queue behavior.
2 open findings
What changed in this PR
Handles termination messages for purged Azure Storage orchestration instances without indefinite retries.
Changes:
- Treats missing instance rows as completed termination updates.
- Adds a regression scenario for purged instances.
| File | Description |
|---|---|
AzureTableTrackingStore.cs |
Handles missing rows during termination updates. |
AzureStorageScenarioTests.cs |
Adds a purged-instance termination test. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
| await host.service.TrackingStore.UpdateStatusForTerminationAsync( | ||
| client.InstanceId, | ||
| new ExecutionTerminatedEvent(-1, "terminate")); |
035c427 to
60d61d3
Compare
|
sean0407 please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.
Contributor License AgreementContribution License AgreementThis Contribution License Agreement (“Agreement”) is agreed to by the party signing below (“You”),
|
1 similar comment
|
sean0407 please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.
Contributor License AgreementContribution License AgreementThis Contribution License Agreement (“Agreement”) is agreed to by the party signing below (“You”),
|
| catch (DurableTaskStorageException e) when ( | ||
| e.HttpStatusCode == (int)HttpStatusCode.NotFound && | ||
| e.ErrorCode == "ResourceNotFound") | ||
| { | ||
| // The row can be purged after the existence check above. | ||
| foreach (string blobName in largeMessageBlobs) | ||
| { | ||
| await this.messageManager.DeleteBlobAsync(blobName, cancellationToken); |


Summary
AzureTableTrackingStorenow skips the update when the instance was already purged. If a purge races the status write, it handles only the table's404 ResourceNotFoundand deletes any large-message blobs created for that attempted update; other storage errors still propagate. Fixes #1398.Evidence
TerminatePurgedOrchestrationDoesNotRetryForeverfailed against Azurite with404 ResourceNotFoundfromMergeEntityAsync.dotnet test Test/DurableTask.AzureStorage.Tests/DurableTask.AzureStorage.Tests.csproj --framework net8.0 --filter FullyQualifiedName~TerminatePurgedOrchestrationDoesNotRetryForeverMerge Danger
Door: Two-way
Blast Radius: Small
The change applies only to termination updates for an instance row that no longer exists; it does not recreate purged rows.